/**
 * 
 */
package habitcoach.core;

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

/**
 * System Environment holds environment of the current system.
 * 
 * @author Coddy created on 2010-4-24
 * 
 */
public class SystemEnvironment implements Environmental
{
	Calendar cal = Calendar.getInstance();

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.Environmental#getDate()
	 */
	@Override
	public Date getDate()
	{
		return cal.getTime();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.Environmental#getTime()
	 */
	@Override
	public long getTime()
	{
		return System.currentTimeMillis();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.Environmental#getLocale()
	 */
	@Override
	public Locale getLocale()
	{
		return Locale.getDefault();
	}

}
